import { ServerErrorCodes } from '@mockoon/commons';

export type MessageLevels = 'error' | 'info';
export type MessageParams = Record<string, any>;
export type MessageCodes =
  | keyof typeof ServerErrorCodes
  | 'INITIALIZING_APP'
  | 'UNKNOWN_ERROR'
  | 'OPENAPI_EXPORT'
  | 'EXPORT_SUCCESS'
  | 'OPENAPI_EXPORT_SUCCESS'
  | 'OPENAPI_EXPORT_ERROR'
  | 'OPENAPI_IMPORT_SUCCESS'
  | 'OPENAPI_IMPORT_URL_ERROR'
  | 'OPENAPI_IMPORT_ERROR'
  | 'OPENAPI_IMPORT_READ_ERROR'
  | 'COPY_ENVIRONMENT_CLIPBOARD_SUCCESS'
  | 'COPY_ENVIRONMENT_CLIPBOARD_ERROR'
  | 'COPY_ROUTE_CLIPBOARD'
  | 'COPY_ROUTE_CLIPBOARD_SUCCESS'
  | 'COPY_ROUTE_CLIPBOARD_ERROR'
  | 'NEW_ENVIRONMENT_FROM_URL'
  | 'NEW_ENVIRONMENT_CLIPBOARD_ERROR'
  | 'NEW_ENVIRONMENT_URL_ERROR'
  | 'NEW_ROUTE_CLIPBOARD_ERROR'
  | 'ENVIRONMENT_FILE_IN_USE'
  | 'FIRST_LOAD_DEMO_ENVIRONMENT'
  | 'ENVIRONMENT_INVALID'
  | 'ENVIRONMENT_MORE_RECENT_VERSION'
  | 'ENVIRONMENT_IS_EXPORT_FILE'
  | 'ENVIRONMENT_MIGRATION_FAILED'
  | 'STORAGE_LOAD_ERROR'
  | 'STORAGE_SAVE_ERROR'
  | 'MIGRATING_ENVIRONMENT'
  | 'LOGIN_ERROR'
  | 'LOGIN_SUCCESS'
  | 'ENVIRONMENT_MOVED'
  | 'CLOUD_ENVIRONMENT_CONVERTED'
  | 'CLOUD_ENVIRONMENT_DELETED'
  | 'CLOUD_SYNC_QUOTA_EXCEEDED'
  | 'CLOUD_ENVIRONMENT_TOO_LARGE'
  | 'CLOUD_DEPLOY_QUOTA_EXCEEDED'
  | 'CLOUD_DEPLOY_START_TOO_BIG_ERROR'
  | 'CLOUD_DEPLOY_START_SUBDOMAIN_TAKEN'
  | 'CLOUD_DEPLOY_ALREADY_IN_PROGRESS'
  | 'CLOUD_DEPLOY_START_ERROR'
  | 'CLOUD_DEPLOY_STOP_ERROR'
  | 'FEEDBACK_SEND_SUCCESS'
  | 'FEEDBACK_SEND_ERROR';
